package com.thiswhyme.gateway.sentinel.service.biz;

import com.alibaba.nacos.api.exception.NacosException;
import org.springframework.cloud.gateway.route.RouteDefinition;

import java.util.List;

/**
 * @description: 熔断/限流规则更新处理器接口
 * @author: thiswhyme
 * @date: 2021/4/28
 */
public interface RuleUpdateHandler {

    /**
     * 更新规则
     * @param routes
     */
    void updateRules(List<RouteDefinition> routes) throws NacosException;
}
